import request from '@/utils/request'

// 试剂单位-查询
export function listReagentUnit() {
  return request({
    url: '/sjt/unit/list',
    method: 'get',
  })
}

// 新增试剂单位
export function newReagentUnit(unit) {
  const data = {
    unit,
  }
  return request({
    url: '/sjt/unit',
    method: 'post',
    data
  })
}

// 删除试剂单位
export function delReagentUnit(unitId) {
  return request({
    url: '/sjt/unit/' + unitId,
    method: 'delete'
  })
}

// 修改试剂单位
export function editReagentUnit(data) {
  return request({
    url: '/sjt/unit',
    method: 'put',
    data,
  })
}
